<?php

use Biz\cache\activity\CActivityIKEA;
use Doraemon\model\Elasticsearch\brandContent\BrandContentField;
use Doraemon\service\User;

ini_set('display_errors', 1);
error_reporting(-1);
require_once '/data/wwwroot/g_vendor/autoload.php';


$action = $argv[1] ?? '';
$p = $argv[2] ?? 1;

//$list = \Biz\model\brand\Content::select('id', ['brand_id' => '2583', 'claim_content_status[>]' => 0]);
//var_dump(count($list));
//foreach ($list as $id) {
//    \Doraemon\model\Elasticsearch\brandContent\BrandContentEs::saveToEsById($id);
//
//}
$list = \Doraemon\model\Elasticsearch\brandContent\BrandContentEs::getWaitClaimList('2583');

var_dump($list);



